define(function(require, exports, module){
	'use strict';
	require("resource/js/easyui/themes/icon.css");
	require("resource/js/easyui/easyloader.js");
	require("resource/js/component/vitoBooks/vitobooks.js");
	require("resource/js/component/vitoBooks/vitobooks.css");
	require("oa/approval/include/fileUtil.js");
	var ajax = require("resource/js/component/ajax.js");
	var CONT = require("oa/act/js/actcont.js");
	var EasyUtil = require("resource/js/component/easyutil.js");
	var urltool = require("resource/js/component/urlTool.js");
	var painNodeForm = require("oa/act/main/js/paintNodeForm.js");
	
	var businessId='';

	function resize(){
		$('#mainView').height($(window).innerHeight()-$('#btnsWarp').innerHeight());
	};
	$(window).resize(function(){
		resize();
	});
	var dealData = function(data){
		if(data&&data.length>0){
			$.each(data,function(i,item){
				painNodeForm.paintNode(item,i);
			});
			//加载抄送、评论列表
			businessId = urltool.getParam('bussId');
			painNodeForm.paintCCUser(businessId);
			painNodeForm.paintComment(businessId);
			painNodeForm.initComment(businessId);
			$('#subsView').show();
			resize();
		}
	};
	exports.init = function(){
		var url = this.url;
		ajax.init().success(function(code,msg,data){
			dealData(data.data);
			resize();
		}).post(BASEPATH+"/oa/act/actProgressTable/queryOverBussInfo.htm",{path:url});
	};
});
